package com.net

import io.reactivex.Observable
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * Time:2022/5/3 11:04 上午
 * Author:
 * Description:
 */
interface PolizeApi {
    //    https://jiayin.greenamc.net/prod-api/user/reg?accid=18688367977&name=18688367977&password=111111
    @POST("/prod-api/user/reg")
    fun regsiter(@Body body:RequestBody): Observable<Direct<String>>
//    https://jiayin.greenamc.net/prod-api/user/reg

    @POST("/prod-api/user/login")
    fun login(@Body body:RequestBody): Observable<Direct<String>>
//    https://jiayin.greenamc.net/prod-api/user/login 登录接口

    @GET("/prod-api/getAutoClean")
    fun getAutoClean(): Observable<Direct<String>>
//    https://jiayin.greenamc.net/prod-api/getAutoClean
}
